@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #517fa4, #243949);
}

.container {
  width: 1000px;
  height: 700px;
}
.container ul {
  list-style: none;
  /* 相对定位，这个很重要，如果没有这个，下面两个absolute脱离文档流，就没有占位了，ul就不会居中了，这里用上relative不是为了使用这个属性，而是为了占位 */
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  /* 让子元素在Y轴的最下面排列 */
  align-items: flex-end;
}
.container ul li {
  width: 200px;
  cursor: pointer;
}
.container ul li img {
  width: 100%;
  height: 110px;
  border: 5px solid transparent;
}
.container ul li:nth-child(1):hover ~ .big-img {
  background-image: url("../../images/op1/1.jpg");
}
.container ul li:nth-child(1):hover ~ .frame {
  /* 鼠标移入小图，改变移动框的位置 */
  left: 0px;
}
.container ul li:nth-child(2):hover ~ .big-img {
  background-image: url("../../images/op1/2.jpg");
}
.container ul li:nth-child(2):hover ~ .frame {
  /* 鼠标移入小图，改变移动框的位置 */
  left: 200px;
}
.container ul li:nth-child(3):hover ~ .big-img {
  background-image: url("../../images/op1/3.jpg");
}
.container ul li:nth-child(3):hover ~ .frame {
  /* 鼠标移入小图，改变移动框的位置 */
  left: 400px;
}
.container ul li:nth-child(4):hover ~ .big-img {
  background-image: url("../../images/op1/4.jpg");
}
.container ul li:nth-child(4):hover ~ .frame {
  /* 鼠标移入小图，改变移动框的位置 */
  left: 600px;
}
.container ul li:nth-child(5):hover ~ .big-img {
  background-image: url("../../images/op1/5.jpg");
}
.container ul li:nth-child(5):hover ~ .frame {
  /* 鼠标移入小图，改变移动框的位置 */
  left: 800px;
}
.container ul .big-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 1000px;
  height: 550px;
  background: url("../../images/op1/1.jpg") no-repeat;
  background-size: cover;
  background-position: center;
}
.container ul .frame {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 200px;
  height: 110px;
  border: 5px solid #fff;
  /* 这里有一个bug闪烁 加上这个属性可以让移动框不会被鼠标捕捉到 */
  pointer-events: none;
  /* 移动框上的三角形 */
  transition: 0.4s;
}
.container ul .frame::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 15px;
  background-color: #fff;
  left: calc(50% - 15px);
  top: -18px;
  -webkit-clip-path: polygon(0 100%, 50% 0, 100% 100%);
          clip-path: polygon(0 100%, 50% 0, 100% 100%);
}/*# sourceMappingURL=index.css.map */